package com.hsjk.szwj.module.official.dal.mysql.app;

import com.hsjk.szwj.framework.mybatis.core.mapper.BaseMapperX;
import com.hsjk.szwj.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.hsjk.szwj.module.official.controller.app.app.vo.AppBindOfficialWebsiteAppRespVO;
import com.hsjk.szwj.module.official.dal.dataobject.app.OfficialWebsiteAppDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/08/02 00:14
 **/
@Mapper
public interface IOfficialWebsiteAppMapper extends BaseMapperX<OfficialWebsiteAppDO> {
    default List<OfficialWebsiteAppDO> getAppListByAppCategoryId(Integer appCategoryId) {
        return selectList(new LambdaQueryWrapperX<OfficialWebsiteAppDO>()
                .eq(OfficialWebsiteAppDO::getAppCategoryId, appCategoryId));
    }

    List<AppBindOfficialWebsiteAppRespVO> listBindOfficialWebSiteApp();
}
